package com.example.sport;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class MyDatabaseTest extends SQLiteOpenHelper {
	
	public static final String CREATE_SCORE = "CREATE TABLE SCORE ( " 
												+ " id INTEGER PRIMARY KEY AUTOINCREMENT,"
												+ " user_id INTEGER,"
												+ " sport_type TEXT,"
												+ " property TEXT,"
												+ " score_time TEXT,"
												+ " from_user TEXT,"
												+ " score REAL )";

	public MyDatabaseTest(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_SCORE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
